package com.easy.system.design.decorator;

/**
 * Created with IntelliJ IDEA.
 * User: sunguangzhu
 * Date: 13-8-9
 * Time: 下午12:40
 * To change this template use File | Settings | File Templates.
 */
public class ConcreteDecorator2 extends Decorator {

    public ConcreteDecorator2(Component component) {
        super(component);
    }

    public void method2() {
        System.out.println("method2");
    }


    @Override
    public void operate() {
        this.method2();
        super.operate();
        //To change body of implemented methods use File | Settings | File Templates.
    }
}
